#include "main.h"
#ifndef __LCD_SHOW_H_
#define  __LCD_SHOW_H_

/*******************************************************
*岻ͬλµLCD ʾ
*궨
*ڹ
*******************************************************/
//========================================================================================//
 /**************************************
 *ʼָʾ  LCD1602_PrintString("KF8TS2716 DEMO");\
 **************************************/
 #define Show_begin_Mes()     \
{\
LCD1602_Clear();\
LCD1602_setxy(0,0);\
LCD1602_PrintString("R:   G:   B:   ");\
LCD1602_setxy(0,2);\
if(PWM1L<100)\
LCD1602_PrintString("0");\
if(PWM1L<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(PWM1L);\
LCD1602_setxy(0,7);\
if(PWM3L_back<100)\
LCD1602_PrintString("0");\
if(PWM3L_back<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(PWM3L_back);\
LCD1602_setxy(0,12);\
if(PWM2L<100)\
LCD1602_PrintString("0");\
if(PWM2L<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(PWM2L);\
LCD1602_setxy(1,0);\
LCD1602_PrintString("W:000K:   S:000");\
}
 /**************************************
 *Ļʾ
 **************************************/
 #define Show_Slide_work_out()     \
{\
LCD1602_setxy(0,12);\
if(PWM2L<100)\
LCD1602_PrintString("0");\
if(PWM2L<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(PWM2L);\
LCD1602_setxy(1,12);\
if(_KF8_LIBi_Slide_channel_out_[0]<100)\
LCD1602_PrintString("0");\
if(_KF8_LIBi_Slide_channel_out_[0]<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(_KF8_LIBi_Slide_channel_out_[0]);\
}


/**************************************
*Ļֽʾ
*************************************/
 #define Show_Wheel_work_out()     \
{\
LCD1602_setxy(0,2);\
if(PWM1L<100)\
LCD1602_PrintString("0");\
if(PWM1L<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(PWM1L);\
LCD1602_setxy(1,2);\
if(_KF8_LIBi_Slide_channel_out_[1]<100)\
LCD1602_PrintString("0");\
if(_KF8_LIBi_Slide_channel_out_[1]<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(_KF8_LIBi_Slide_channel_out_[1]);\
}
 /**************************************
 *İʾ
 **************************************/
 #define Show_Key1_work_out()     \
{\
LCD1602_setxy(0,7);\
if(PWM3L_back<100)\
LCD1602_PrintString("0");\
if(PWM3L_back<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(PWM3L_back);\
LCD1602_setxy(1,8);\
LCD1602_PrintString("+");\
}

 #define Show_Key2_work_out()     \
{\
LCD1602_setxy(0,7);\
if(PWM3L_back<100)\
LCD1602_PrintString("0");\
if(PWM3L_back<10)\
LCD1602_PrintString("0");\
LCD1602_PrintInteger(PWM3L_back);\
LCD1602_setxy(1,8);\
LCD1602_PrintString("-");\
} 
 #endif
